﻿using System;
using System.Collections.Generic;
using System.Web;

namespace web
{
    public class memberBase : System.Web.UI.Page
    {
        public Domain.User u;
        public memberBase()
        {
            
        }
        protected override void OnPreInit(EventArgs e)
        {
            if (System.Web.HttpContext.Current.Session["user"] != null)
            {
                u = (Domain.User)System.Web.HttpContext.Current.Session["user"];
            }
            else
            {
                Common.Message.alertAndRedirect("此功能登陆后才可以使用", "/default.aspx", true);
                Response.End();
            }
            base.OnPreInit(e);
        }
        
    }
}
